/**
 * NearShop
 * AdvList.java
 * com.android.nearshop.io.protocol.out
 * 
 */
package com.wise.site.protocol.result;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;

import com.wise.site.protocol.action.BannerAction.ADV_TYPE;
import com.wise.site.protocol.base.SoapResult;
import com.wise.site.utils.Constanct;
import com.wise.site.utils.ImageLoader;
import com.wise.site.utils.ImageLoader.Imager;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-8-11
 * @see :
 * @Copyright : copyrights reserved by personal 2007-2012
 **********************************************************/
public class AdvSuperResult implements Serializable{

	public List<AdvSuper> list;
	public List<AdvSuper> smallAd;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.android.nearshop.io.protocol.out.SoapResult#parseData(java.lang.String
	 * )
	 */
	public void advToSuper(AdvResult result) {
		list = new ArrayList<AdvSuper>();
		smallAd =  new ArrayList<AdvSuper>();
		AdvSuper superA = null;
		
		if(result.list != null){
			for(Adv adv : result.list){
				superA = new AdvSuper() ;
				superA.advToSuper(adv);
				list.add(superA);
			}
		}
		
		if(result.smallAd != null){
			for(Adv adv : result.smallAd){
				superA = new AdvSuper() ;
				superA.advToSuper(adv);
				smallAd.add(superA);
			}
		}
	}

}
